<template>
  <svg :style={width,height}>
    <use :xlink:href="prefix+name" :fill="color"></use>
  </svg>
</template>
<script setup lang="ts">
  import {
    onBeforeMount,
    onMounted,
    reactive,
    ref,
  } from 'vue'
  const emits = defineEmits([])
  const props = defineProps({
    prefix: {
      type: String,
      default: "#icon-"
    },
    name: String,
    color: {
      type: String,
      default: 'red'
    },
    width: {
      type: String,
      default: "16px"
    },
    height: {
      type: String,
      default: "16px"
    }
  })
  const state = reactive({})
  const stateref = ref({})
  onBeforeMount(() => {})
  onMounted(() => {})
</script>
<style lang="scss" scoped></style>